#include "stdafx.h"
#include "UltimateSoundMock.h"






UltimateSoundMock::UltimateSoundMock()
{
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"UltimateSoundMock called");
}

UltimateSoundMock::UltimateSoundMock(int argc, char** argv)
{
	
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"UltimateSoundMock called");
}

// Hello World for OpenAL
void UltimateSoundMock::helloAudioWorld()
{
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"helloAudioWorld called");
	
}

Ogre::Vector3 UltimateSoundMock::getAudioListenerPosition()
{
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"getAudioListenerPosition called");

	return Ogre::Vector3::ZERO;
}

Ogre::Vector3 UltimateSoundMock::getAudioListenerDirection()
{
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"getAudioListenerDirection called");

	return Ogre::Vector3::ZERO;
}

void UltimateSoundMock::setAudioListenerPose(Ogre::Vector3 pos, Ogre::Vector3 dir)
{
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"setAudioListenerPose called");
}

// Create audio source with: name, filepath (buffer), loop, pitch, position
// Does not play the actual audio
void UltimateSoundMock::createAudioWithName(
	Ogre::String name, Ogre::String filePath, bool looping = false,
	float pitch = 1.0, Ogre::Vector3 position = Ogre::Vector3::ZERO)
{

	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"createAudioWithName called");

}

// Alter the named audio source with: filepath (buffer), loop, pitch, position
// Does not play the actual audio
void UltimateSoundMock::setAudioWithName(
	Ogre::String name, Ogre::String filePath, bool looping = false,
	float pitch = 1.0, Ogre::Vector3 position = Ogre::Vector3::ZERO)
{

	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"setAudioWithName called");

}

// Plays the named audio
void UltimateSoundMock::playAudioByName(Ogre::String name)
{
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"playAudioByName called");
}

// Create audio source: filepath (buffer), loop, pitch, position
// Plays the actual audio, but doesnt store it
void UltimateSoundMock::playAudioFromFile(Ogre::String filePath, bool looping = false,
	float pitch = 1.0, Ogre::Vector3 position = Ogre::Vector3::ZERO)
{
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"playAudioFromFile called");
}

// Stops named audio source
void UltimateSoundMock::stopAudioByName(Ogre::String name)
{
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"stopAudioByName called");
}

// Stops all audio
void UltimateSoundMock::stopAllAudioSource()
{
	
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"stopAllAudioSource called");
}
	
void UltimateSoundMock::deleteAllAudioSource()
{
	Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"deleteAllAudioSource called");
}
    
UltimateSoundMock::~UltimateSoundMock()
{
   Ogre::LogManager::getSingleton().logMessage(Ogre::LML_NORMAL,"~UltimateSoundMock called");
}